package com.yhb.dao;

import com.yhb.controller.admin.form.QueryPosBoundForm;
import com.yhb.controller.admin.vo.QueryPosVo;
import com.yhb.model.PosBound;
import com.yhb.model.PosManufacturer;
import com.yhb.model.MPosSku;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MPosMapper {
    int insertBoundRelationship(@Param("bound")PosBound bound);

    int deleteBoundRelationship(@Param("id") String id);

    PosBound getLeshuaBoundBySn(@Param("sn")String sn);
    PosBound getLeshuaBoundByMerchantId(@Param("merchantId") String merchantId);
    List<PosBound> getLeshuaBoundByUserId(@Param("userId") String userId);
    PosBound getLeshuaBoundById(@Param("id") String id );

    int updateLeshuaMerchantId(@Param("sn") String sn, @Param("merchantId") String merchantId);

    List<PosManufacturer> manufacturers();

    MPosSku getSku(@Param("mId")String manufacturerId, @Param("sn") String serialNumber);

    MPosSku getSkuBySN(@Param("sn")String sn);
    int modifySku(@Param("sku") MPosSku sku);

    int importSku(@Param("skus") List<MPosSku> skus);

    List<QueryPosVo> search(@Param("form") QueryPosBoundForm form);



}
